import fg from "fast-glob";
import path from "path";
import { toolchain } from "../toolchain.js";

export class AtlasCleaner {
    public async lookUp(): Promise<void> {
        const allowExts = ['.png', '.jpg', '.tga'];
        const files = await fg('**/atlas/**/*', { cwd: toolchain.opts.projectRoot, ignore: ['**/*.meta', 'TsScripts/**/*'] });
        for (const f of files) {
            if (!allowExts.includes(path.extname(f))) {
                console.log(path.join(toolchain.opts.projectRoot, f));
            }
        }
    }
}
